import service from '../utils/request'
// 登录方法
export function login(data: any) {
  return service({
    url: '/auth/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data
  })
}
// 获取验证码
export function getCodeImg(): any {
  return service({
    url: '/code',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 获取权限
export function getInfo(): any {
  return service({
    url: '/system/user/getInfo',
    method: 'get'
  })
}

// 获取路由
export function getRouters(): any {
  return service({
    url: '/system/menu/getRouters',
    method: 'get'
  })
}
